package mortal.game.scene
{
	import Message.BroadCast.*;
	import Message.Public.*;
	
	import com.fyGame.fyMap.*;
	import com.gengine.core.frame.*;
	import com.greensock.*;
	
	import flash.display.*;
	import flash.events.*;
	import flash.geom.*;
	
	import mortal.game.*;
	import mortal.game.cache.*;
	import mortal.game.events.*;
	import mortal.game.manager.*;
	import mortal.game.mvc.*;
	import mortal.game.scene.map.*;
	import mortal.game.scene.modle.data.*;
	import mortal.game.scene.player.*;
	import mortal.mvc.core.*;
	import mortal.mvc.interfaces.*;
	
	public class GameScene extends Sprite //implements IView
	{/*
		public var mapLayer:MapLayer;
		public var bulidlayer:SLayer;
		public var effectLayer:SLayer;
		public var mapExtendLayer:MapExtendLayer;
		public var playerLayer:PlayerLayer;
		public var skillsLayer:SkillsLayer;*/
		private var _root:DisplayObjectContainer;
		//public var rolePlayer:RolePlayer;
		//private var _astar:AStar;
		private var _isInitialize:Boolean = false;
		private var _globalTimer:FrameTimer;
		private var _pointMask:MovieClip;
		private var _isTweening:Boolean = false;
		
		public function GameScene(param1:DisplayObjectContainer)
		{
			//this.rolePlayer = RolePlayer.instance;
			//this._root = param1;
			this._root.addChildAt(this, 0);
			this.tabChildren = false;
			//this._pointMask = new MouseClickMask();
			this._pointMask.mouseChildren = false;
			this._pointMask.mouseEnabled = false;
			//this.addEventListener(MouseEvent.ROLL_OVER, this.onRollOverHandler);
			//this.addEventListener(MouseEvent.ROLL_OUT, this.onRollOutHandler);
			this.mouseChildren = false;
			//this.initLayer();
			//this._astar = new AStar();
		}
		
		public function setPlayerPoint(param1:int, param2:int, param3:int) : void
		{
			this._isInitialize = false;
			var _loc_4:* = new SPoint();
			new SPoint().x = param2;
			_loc_4.y = param3;
			Cache.instance.role.entityInfo.points = [_loc_4];
			this.loadMapData(param1);	
		}
		
		private function loadMapData(param1:int) : void
		{/*
			this.rolePlayer.stopAiWalking();
			MapFileUtil.mapID = param1;
			MapLoader.instance.addEventListener(Event.COMPLETE, this.onLoadedHandler);
			MapLoader.instance.load();
			*/
		}
	}
}